/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package carreras.color.test;

import java.awt.Color;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author Fanky10 <fanky10@gmail.com>
 */
public class Main {
    public static void main(String args[]){
        //conf label
        JLabel lbl = new JLabel("holaa sin color");
        Color color = new Color(195, 12, 12);
        lbl.setOpaque(true);
        lbl.setBackground(color);
        //show
        create_show(lbl);
    }
    private static void create_show(JLabel lbl){
        JDialog diag = new JDialog(new JFrame(),true);
        diag.setTitle("TestColor");
        diag.add(lbl,java.awt.BorderLayout.CENTER);
        diag.pack();
        diag.setVisible(true);
        diag.dispose();
        System.exit(0);
    }
}
